Skip to content

feat: add fzf-lua integration for fixture usages#11

Merged
sigfriedCub1990 merged 2 commits into
mainfrom
feat/fzf-lua-integration
Mar 5, 2026
Merged

feat: add fzf-lua integration for fixture usages#11
sigfriedCub1990 merged 2 commits into
mainfrom
feat/fzf-lua-integration

Conversation

@sigfriedCub1990
Copy link
Copy Markdown
Owner

Summary

Add fzf-lua as an input method for displaying fixture usages.

Changes

  • New module lua/pytrize/fzf.lua — displays fixture usages in an fzf-lua picker with built-in previewer and standard file actions (edit, split, vsplit, tab)
  • usages.lua — dispatches to fzf-lua when preferred_input = 'fzf-lua', with graceful fallback to quickfix if fzf-lua is not installed
  • settings.lua — uses a valid_keys lookup table so nil-defaulted settings like preferred_input are not rejected as unknown keys
  • README — updated configuration and input sections to document fzf-lua support; removed references to telescope, nui, and inputlist which are no longer supported
  • Tests — added test for fzf-lua fallback behavior

Usage

require('pytrize').setup({
  preferred_input = 'fzf-lua',
})

Then call PytrizeFixtureUsages with cursor on a fixture name.

- Add lua/pytrize/fzf.lua module that displays fixture usages in an
  fzf-lua picker with preview and file actions (edit, split, vsplit, tab)
- Update usages.lua to dispatch to fzf-lua when preferred_input is set
  to 'fzf-lua', with graceful fallback to quickfix
- Fix settings.lua to use a valid_keys lookup table so nil-defaulted
  settings like preferred_input are not rejected as unknown
- Add test for fzf-lua fallback behavior
- Update README with fzf-lua documentation
@sigfriedCub1990 sigfriedCub1990 merged commit 3d545cd into main Mar 5, 2026
2 checks passed
@sigfriedCub1990 sigfriedCub1990 deleted the feat/fzf-lua-integration branch March 5, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant